package com.bort.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bort.system.model.TDesk;
import com.bort.system.info.DeskInfo;
import com.bort.system.model.TGameLog;
import com.bort.system.utils.Result;

import java.util.List;
import java.util.Map;

public interface TDeskService extends IService<TDesk> {
    List<DeskInfo> getAllDesk(Map<String,Object> params);

    List<DeskInfo> getDeskList(Page<DeskInfo> page, Map<String,Object> map);

    TGameLog openDesk(DeskInfo data, Integer hour, Integer minute, String player,Integer userId);

    void refreshData();
    void refreshData(List<DeskInfo> deskInfos);

    DeskInfo getDeskById(Integer id);

    int addDesk(TDesk desk);

    int updateDesk(TDesk desk);

    int deleteDesk(Integer deskId);

    Page<TGameLog> getGameLogList(int page, int rowSize,Map<String,Object> map);

    Result<Map<String, Object>> getDataCount(Map<String, Object> map);

    Result countTopData(Map<String, Object> params);

    Result countLineData(Map<String, Object> params);

    TGameLog addOvertime(DeskInfo data, Integer value, Integer minute,Integer userId);
}
